server {
    listen 8858;
    server_name 127.0.0.1;
    proxy_buffer_size 4k;
    proxy_buffers 16 32k;
    proxy_busy_buffers_size 64k;
    proxy_temp_file_write_size 64k;
    proxy_read_timeout 180;
    proxy_redirect off;
    proxy_set_header Host $http_host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forward-For $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;


    location / {
    	proxy_pass http://sentinel-dashboard;
    }
}

upstream sentinel-dashboard {
    server 127.0.0.1:8818 weight=5;
    server 127.0.0.1:8828 weight=5;
}
